package org.openslash.card;

import java.util.Map;

import org.openslash.resource.ResourcePacket;

public abstract class CardInstance {
	
	protected short totalCount;
	protected Map<Short, Card> cardInstanceSuit;
	protected ResourcePacket rp;

	protected CardInstance(ResourcePacket rp) {
		this.rp = rp;
	}
	
	protected abstract void initialize();

	public Card GetCard(short cardId){
		return cardInstanceSuit.get(cardId);
	}
	
	public String GetText(String key) {
		return rp.GetValue(key);
	}
	public String getColorText(byte colorId)
	{
		return GetText("POKERCOLOR" + colorId);
	}
}
